home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
prog_c
/
sm099c.zip
/
EXAMPLE
/
DESTROY.C
< prev
next >
Wrap
C/C++ Source or Header
|
1996-03-03
|
641b
|
31 lines
#include "example.h"
void RestoreScreen ( void )
/* Restore screen (color, mode, etc.) back to what it was when the program
was started. */
{
#ifdef GUI
#ifdef OS2
WinStopTimer (hAB, hWndClient, TID_MOVE);
WinReleasePS (hPS);
WinDestroyWindow (hWndFrame);
WinDestroyMsgQueue (hMQ);
WinTerminate (hAB);
#else
closegraph (); /* Return the system to text mode */
#endif
#else
ClrScr ();
normvideo ();
gotoxy (0, iScreenH - 1);
_setcursortype (_NORMALCURSOR);
#endif
}
void Terminate ( void )
/* Get ready to exit this silly program */
{
RestoreScreen ();
}